local ye__jiedang = fk.CreateSkill {
  name = "ye__jiedang",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["ye__jiedang"] = "解党",
  [":ye__jiedang"] = "锁定技，回合结束时，你失去因【党锢】获得的所有技能。",
}

ye__jiedang:addEffect(fk.TurnEnd, {
  anim_type = "negative",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(ye__jiedang.name)
  end,
  on_use = function (self, event, target, player, data)
    player.room:handleAddLoseSkills(player, "-changshi__taoluan|-changshi__chiyan|-changshi__zimou|-changshi__picai|-changshi__yaozhuo|-changshi__xiaolu|-changshi__kuiji|-changshi__chihe|-changshi__niqu|-changshi__miaoyu")
  end,
})

return ye__jiedang
